package com.loong.shop.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsCategoryParam {
    /**
     * 类别id
     */
    @NotNull(message = "更新时类别id不能为空",groups = {CommonUpdate.class})
    private Long id;

    /**
     * 店铺id
     */
   // @NotNull(message = "新增时店铺id不能为空",groups = {CommonInsert.class})
    private Long shopId;

    /**
     * 类别名称
     */
    @NotBlank(message = "新增时类别名称不能为空",groups = {CommonInsert.class})
    private String categoryName;

    /**
     * 父类别
     */
    @NotNull(message = "新增时父类别不能为空",groups = {CommonInsert.class})
    private Long parentId;

    /**
     * logo图标
     */
    private String logo;

    /**
     * 创建时间
     */
  //  @NotNull(message = "新增时创建时间不能为空",groups = {CommonInsert.class})
    private Date createTime;
    /**
     * 更新时间
     */
   // @NotNull(message = "更新时更新时间不能为空",groups = {CommonUpdate.class})
    private Date lastUpdateTime;
}